package com.sunwayworld.basemodule.business.sampleprocess.resource;

import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.basemodule.business.batch.bean.LimsBatchSampleProductBean;
import com.sunwayworld.basemodule.business.sampleprocess.dto.LimsSampleProcessDataSearchDto;
import com.sunwayworld.basemodule.samplemanage.sample.bean.LimsSampleBean;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RequestMapping(value = "/sample-process")
public interface LimsSampleProcessResource {

    @PostMapping(value = "/sample-list")
    List<LimsSampleBean> selectSampleList(@RequestBody JSONObject rep);

    @PostMapping(value = "/sample-product-list")
    List<LimsBatchSampleProductBean> selectSampleProductList(@RequestBody LimsSampleProcessDataSearchDto searchDto);

    @PostMapping(value = "/process-search")
    JSONObject processSearch3(@RequestBody LimsSampleProcessDataSearchDto searchDto);
}
